﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Freeman.MyMongoDB;
using Freeman.MyClass.Entities;
using Freeman.MyUtilities;
using Freeman.MyClass.Basic;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Connecting cnt = new Connecting();
        //var abc = cnt.Single<Artist>(i => i.Alias == "alan_rickman1234");
        //var abc = cnt.Single<BasicInfo>(i => i.Name == "abc");
        var abc = cnt.All<BasicInfo>();

        //abc.Description = @"""asjfhas"" '' \=\21042975!@$@#$%^*(_+(#$!";
        //cnt.Save<BasicInfo>(abc);
        string mmm = MyJson.ToJson(abc);
        lbl.Text = mmm;
    }
}